package com.hzhr.iot.device.model.alarmData;

import com.hzhr.iot.core.annotation.CygModel;
import com.hzhr.iot.core.annotation.CygProperty;
import com.hzhr.iot.device.entity.AlarmDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "AlarmDataPostModel", description = "报警数据模型(新增)")
@CygModel(entity = AlarmDataEntity.class)
public class AlarmDataPostModel {
    @ApiModelProperty(value = "说明 : 采集设备编号(关联: device_service.collectDevice.id)")
    @CygProperty(show = "", entityProp = "collectDeviceId")
    private Integer collectDeviceId;
    @ApiModelProperty(value = "说明 : 物联网设备编号(关联: device_service.iotDevice.id)", required = true)
    @CygProperty(show = "", entityProp = "iotDeviceId")
    private Integer iotDeviceId;
    @ApiModelProperty(value = "说明 : 燃气用户编号(关联: toll_service.gasUser.id)")
    @CygProperty(show = "", entityProp = "gasUserId")
    private Integer gasUserId;
    @ApiModelProperty(value = "说明 : 当前时间(毫秒级时间戳)", required = true)
    @CygProperty(show = "", entityProp = "currentTm")
    private Long currentTm;
    @ApiModelProperty(value = "说明 : 报警类型(关联: device_service.options.code, typeName = 'ALARM_TYPE')", required = true)
    @CygProperty(show = "", entityProp = "alarmType")
    private String alarmType;

    public Integer getCollectDeviceId() {
        return collectDeviceId;
    }

    public void setCollectDeviceId(Integer collectDeviceId) {
        this.collectDeviceId = collectDeviceId;
    }

    public Integer getIotDeviceId() {
        return iotDeviceId;
    }

    public void setIotDeviceId(Integer iotDeviceId) {
        this.iotDeviceId = iotDeviceId;
    }

    public Long getCurrentTm() {
        return currentTm;
    }

    public void setCurrentTm(Long currentTm) {
        this.currentTm = currentTm;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public Integer getGasUserId() {
        return gasUserId;
    }

    public void setGasUserId(Integer gasUserId) {
        this.gasUserId = gasUserId;
    }
}
